@extends('d.layout.index')
@section('con')
<div class="mws-panel grid_8">
 	<div class="mws-panel-header">
     	<span>商品基本信息添加</span>
     </div>

     <div class="mws-panel-body no-padding">
     	<form class="mws-form" action="/admin/goods/insert" method="post" enctype="multipart/form-data">
               {{csrf_field()}}
     		<div class="mws-form-inline">
     			<div class="mws-form-row">
     				<label class="mws-form-label">商品种类</label>
                         <div class="mws-form-item">
                              <select class="small" name="tid">
                                   @foreach($list as $v)
                                   <option value="{{$v['id']}}" @if($tid == $v['id'])selected @endif>{{$v['name']}}</option>
                                   @endforeach
                              </select>
                         </div>
     			</div>    			
     		</div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品名称</label>
                         <div class="mws-form-item">
                              <input type="text" name='name' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品价格</label>
                         <div class="mws-form-item">
                              <input type="text" name='price' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品折扣价</label>
                         <div class="mws-form-item">
                              <input type="text" name='on_sale' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品主图片</label>
                         <div class="mws-form-item">
                              <input type="file" name='pic' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品列表图片1</label>
                         <div class="mws-form-item">
                              <input type="file" name='pic1' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品列表图片2</label>
                         <div class="mws-form-item">
                              <input type="file" name='pic2' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品列表图片3</label>
                         <div class="mws-form-item">
                              <input type="file" name='pic3' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品列表图片4</label>
                         <div class="mws-form-item">
                              <input type="file" name='pic4' class="small">
                         </div>
                    </div>                   
               </div>
               <div class="mws-form-inline">
                    <div class="mws-form-row">
                         <label class="mws-form-label">商品介绍</label>
                         <div class="mws-form-item">
                              <textarea name="desc" class="error small" cols="30" rows="10"></textarea>
                         </div>
                    </div>                   
               </div>
     		<div class="mws-button-row">
     			<input type="submit" value="下一步" class="btn btn-danger">
     			<input type="reset" value="重置" class="btn ">
     		</div>
     	</form>
     </div>    	
</div>
@endsection